import React, { Component } from 'react';
class degzu extends Component {
  constructor(props) {
    super(props);
    this.state = {  }
  }
  render() { 
    return ( 
      <div>
        <div>第二个组件</div>
        <div>{this.props.two}</div>
        <button onClick={this.modify}>改变一下</button>
      </div>
    );
  }
  modify=()=>{
    this.props.twoEvent('放假了')
  }
}
 
export default degzu;